import { IBaseconfig } from '@/render/store/baseconfig/types'
import wmcRequest from '..'

export function updateBaseConfiguration(baseConfiguration: IBaseconfig): any {
  return wmcRequest.post({
    url: '/projects/baseConfiguration',
    data: baseConfiguration
  })
}

export function getBaseConfiguration(projectName: string): any {
  return wmcRequest.get({
    url: `/projects/${projectName}/baseConfiguration`
  })
}
